package com.hnkywl.sts.entity.jggl;

import com.hnkywl.sts.entity.BaseEntity;
import com.hnkywl.sts.entity.organ.Gsjg;
import com.hnkywl.sts.entity.organ.Qyjg;
import com.hnkywl.sts.entity.sys.Yg;
import org.hibernate.annotations.*;

import javax.persistence.Entity;
import javax.persistence.*;
import javax.persistence.Table;
import java.util.Date;
import java.util.List;

/**
 * Created by Melody on 14-3-11.
 */
@Entity
@Table(name = "T_BIZ_CKD")
@Where(clause = "deleted!='1'")
public class Ckd extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqCkd", allocationSize = 1, sequenceName = "SEQ_BIZ_CKD")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqCkd")
    private Long id;

    /**
     * 出库单号
     */
    private String warehousebillno;

    /**
     * 冲销单号
     */
    private String cxdh;

    /**
     * 加工数量
     */
    private Double jgsl = 0d;

    /**
     * 加工重量
     */
    private Double jgzl = 0d;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "JGDMX_ID")
    private Jgdmx jgdmx;

    /**
     * 0:为出库单，1：为冲销单,2：为已冲销
     */
    private Integer ckd_tz;

    /**
     * false(0):冲销单没有进行审核，true(1)：冲销单已经审核通过
     */
    private Boolean sftzd = false;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getWarehousebillno() {
        return warehousebillno;
    }

    public void setWarehousebillno(String warehousebillno) {
        this.warehousebillno = warehousebillno;
    }

    public Double getJgsl() {
        return jgsl;
    }

    public void setJgsl(Double jgsl) {
        this.jgsl = jgsl;
    }

    public Double getJgzl() {
        return jgzl;
    }

    public void setJgzl(Double jgzl) {
        this.jgzl = jgzl;
    }

    public Jgdmx getJgdmx() {
        return jgdmx;
    }

    public void setJgdmx(Jgdmx jgdmx) {
        this.jgdmx = jgdmx;
    }

    public Integer getCkd_tz() {
        return ckd_tz;
    }

    public void setCkd_tz(Integer ckd_tz) {
        this.ckd_tz = ckd_tz;
    }

    public Boolean getSftzd() {
        return sftzd;
    }

    public void setSftzd(Boolean sftzd) {
        this.sftzd = sftzd;
    }

    public String getCxdh() {
        return cxdh;
    }

    public void setCxdh(String cxdh) {
        this.cxdh = cxdh;
    }
}
